#include "buz.h"
#include "Initialise.h"
#include "timelist.h"

void Buz_CallBack(void)
{
	static u8 i=0;
	if(i==0)
		TS_BUZ_H();
  else
		TS_BUZ_L();
	i=!i;
	if(--Buz.Count==0)
	{
		timer.stop(Buz.Id);
		TS_BUZ_L();
	}
}
void Buz_On(u8 count)
{
	Buz.Id   =timer.creat(10,1,Buz_CallBack);
	Buz.Count=count*2;
}

_Buz Buz={0,0,Buz_On};
